<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改纪检监察干部违纪违法案件情况')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-templatetable4-edit" th:object="${workTemplateTable4}">
            <h4 class="form-header h4">纪检监察干部违纪违法案件情况</h4>
            <input id="progressId" name="progressId" th:value="${progressId}" type="hidden">
            <div class="row">
                <div class="col-sm-12">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="bootstrap-table"></table>
                    </div>
                    </br>
                    <p style="color: red">填表说明：</p>
                    <p style="color: red"> 1. 根据《通知》“一（2）”项要求，本表只填写本级和下级纪检监察机关（机构）立案审查或公安机关、司法机关立案审查调查的情况。</p>
                    <p style="color: red"> 2.
                        立案和结案都需填写，立案时结案时间填“未结案”：被纪检监察机关（机构）立案时，违纪违法类型根据前期掌握的情况简列，以结案时为准；被公安机关、司法机关立案调查的，违法类型根据公安机关、司法机关调查情况填写。
                    </p>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:src="@{/js/jquery.tmpl.js}"></script>
    <script th:inline="javascript">
        $(function () {
            var options = {
                data: [[${workTemplateTable4List}]],
                pagination: false,
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                sidePagination: "client",
                columns: [
                {
                    field: 'val1',
                    align: 'center',
                    title: "序号",
                },
                {
                    field: 'val2',
                    align: 'center',
                    title: '姓名',
                },
                {
                    field: 'val3',
                    align: 'center',
                    title: '性别',
                    formatter: function (value, row, index) {
                       if(value == "0"){
                           return "男";
                       }
                       if(value == "1"){
                           return "女";
                       }
                    }
                },
                {
                    field: 'val4',
                    align: 'center',
                    title: '出生年月',
                },
                {
                    field: 'val5',
                    align: 'center',
                    title: '工作单位',
                },
                {
                    field: 'val6',
                    align: 'center',
                    title: '职务',
                },
                {
                    field: 'val7',
                    align: 'center',
                    title: '职级',
                },
                {
                    field: 'val8',
                    align: 'center',
                    title: '立案单位',
                },
                {
                    field: 'val9',
                    align: 'center',
                    title: '违纪类型',
                },
                {
                    field: 'val10',
                    align: 'center',
                    title: '案件来源',
                },
                {
                    field: 'val11',
                    align: 'center',
                    title: '违法类型',
                },
                {
                    field: 'val12',
                    align: 'center',
                    title: '立案时间',
                },
                {
                    field: 'val13',
                    align: 'center',
                    title: '结案时间',
                },
                {
                    field: 'val14',
                    align: 'center',
                    title: '是否采取留置措施',
                    formatter: function (value, row, index) {
                        if(value == "0"){
                           return "是";
                       }
                       if(value == "1"){
                           return "否";
                       }
                    }
                },
                {
                    field: 'val15',
                    align: 'center',
                    title: '简要案情',
                },
                {
                    field: 'val16',
                    align: 'center',
                    title: '处理情况',
                }
                ]
            };
            $.table.init(options);
        });

      

    </script>
</body>
</html>

<!-- 性别 -->
<script id="selectGender" type="text/x-jquery-tmpl">
    <div>
        <select class='form-control' name='workTemplateTable4List[${index}].val3' readonly >
            <option value=""></option>
            <option value="0" {{if type==="0"}}selected{{/if}} >男</option>
            <option value="1" {{if type==="1"}}selected{{/if}} >女</option>
        </select>
    </div>
    </script>

    <!-- 留置措施 -->
<script id="selectTreatmentMeasure" type="text/x-jquery-tmpl">
    <div>
        <select class='form-control-TreatmentMeasure' name='workTemplateTable4List[${index}].val14' readonly>
            <option value=""></option>
            <option value="0" {{if type==="0"}}selected{{/if}}>是</option>
            <option value="1" {{if type==="1"}}selected{{/if}}>否</option>
        </select>
    </div>
</script>